/**
 * 
 */
package com.csair.youth.web.action;

import java.util.List;

import com.csair.youth.database.Notice;
import com.csair.youth.service.impl.NoticeServiceImpl;

/**
 * @author mickey
 *
 */
public class NoticeShowAction extends _BaseAction {
	private NoticeServiceImpl service;
	private List<Notice> items;
	private int count = 10;
	
	public NoticeServiceImpl getService() {
		return service;
	}

	public void setService(NoticeServiceImpl service) {
		this.service = service;
	}

	public List<Notice> getItems() {
		return items;
	}

	public void setItems(List<Notice> items) {
		this.items = items;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String execute(){
		items = service.showLatestNotices(count);
		return SUCCESS;
	}
}
